from efficient_apriori import apriori


if __name__ == '__main__':
    transactions = [('A', 'C', 'D'),
                    ('B', 'C', 'E'),
                    ('A', 'B', 'C', 'E'),
                    ('B', 'E')]
    itemsets, rules = apriori(transactions, min_support=0.5, min_confidence=0.5)
    print(itemsets)
    print(rules)
